GtkMenuSectionBox: Don't show separators for nested subsections
authorMatthias Clasen <mclasen@redhat.com>
Tue, 29 Apr 2014 16:17:40 +0000 (12:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 29 Apr 2014 16:19:53 +0000 (12:19 -0400)
commit6061f234a98b1025b565fe9f5cc8a25d4f8cd586
treea39d3b3b77ef255dc5042da4488e55a819b5311e
parentf3ba001a1de2c961494e191910dd5017f769bdf1
GtkMenuSectionBox: Don't show separators for nested subsections

...unless they are labeled.

To implement this, keep track of the nesting depth of section boxes,
starting from 0 for the toplevel and the submenu ones, and only
insert unlabeled separators if the depth is at most 1.
gtk/gtkmenusectionbox.c